#include"test.h"

using ptr = const int (*)(const int, const int);

int main()
{
	//vector<int> v{ 1,3,5,5,6,7 };
	//Recursion_vector(v, v.size() - 1);

	//string s[] = { "success", "failure" };
	//cout << make_plural(0, s[0]) << " ";
	//cout << make_plural(1, s[0]) << endl;
	//cout << make_plural(0, s[1]) << " ";
	//cout << make_plural(1, s[1]) << endl;

	//f(2.56, 42);
	//f(42);
	//f(42, 0);
	//f(2.55, 3.1);

	vector<ptr> v{ add, sub, mul, _div };
	cout << v[0](1, 2) << endl;
	cout << v[1](2, 1) << endl;
	cout << v[2](2, 2) << endl;
	cout << v[3](9, 3) << endl;

	return 0;
}